package com.atguigu.springcloud.alibaba.service;

import com.atguigu.springcloud.entities.CommonResult;
import com.atguigu.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * @author xiaolong
 * @version 1.0
 * @description: TODO
 * @date 2021/10/7 21:24
 */
@Component
public class PaymentFallbackService implements PaymentFeignService {

    public CommonResult<Payment> getPaymentById(Long id) {
        return new CommonResult<Payment>(444, "服务降级返回，----paymentFallbackService");
    }

    public String paymentFeignTimeOut() {
        return null;
    }
}
